package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资格证书对象 stu_certificate
 * 
 * @author ruoyi
 * @date 2024-03-01
 */
public class StuCertificate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 证书ID */
    private Long cerId;

    /** 证书名 */
    @Excel(name = "证书名")
    private String cerName;

    /** 发布机构 */
    @Excel(name = "发布机构")
    private String cerInstitution;

    /** 证书获取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "证书获取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cerGettime;

    /** 证书过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cerDeadline;

    /** 过期状态(0 过期, 1 临近过期，2 未过期，3 状态未知 ) */
    @Excel(name = "过期状态", readConverterExp = "0=过期,1=临近过期,2=未过期,3=状态未知")
    private String isExpired;

    /** 指导老师 */
    @Excel(name = "指导老师")
    private String cerInstructor;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String fileName;

    /** 附件路径 */
    @Excel(name = "附件路径")
    private String filePath;

    /** 学生ID */
    private Long stuId;

    /** 学号 */
    @Excel(name = "学号")
    private String stuNumber;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String stuName;

    /** 所属班级 */
    @Excel(name = "所属班级")
    private String stuClass;

    /** 所属专业 */
    @Excel(name = "所属专业")
    private String stuSpeciality;

    /** 所属用户ID */
    private Long userId;
    private Long deptId;

    /** 当前用户ID */
    private Long nowUserId;

    public void setCerId(Long cerId) 
    {
        this.cerId = cerId;
    }

    public Long getCerId() 
    {
        return cerId;
    }
    public void setCerName(String cerName) 
    {
        this.cerName = cerName;
    }

    public String getCerName() 
    {
        return cerName;
    }
    public void setCerInstitution(String cerInstitution) 
    {
        this.cerInstitution = cerInstitution;
    }

    public String getCerInstitution() 
    {
        return cerInstitution;
    }
    public void setCerGettime(Date cerGettime) 
    {
        this.cerGettime = cerGettime;
    }

    public Date getCerGettime() 
    {
        return cerGettime;
    }
    public void setCerInstructor(String cerInstructor) 
    {
        this.cerInstructor = cerInstructor;
    }

    public Date getCerDeadline() {
        return cerDeadline;
    }

    public void setCerDeadline(Date cerDeadline) {
        this.cerDeadline = cerDeadline;
    }

    public String getIsExpired() {
        return isExpired;
    }

    public void setIsExpired(String isExpired) {
        this.isExpired = isExpired;
    }

    public String getCerInstructor()
    {
        return cerInstructor;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setStuId(Long stuId) 
    {
        this.stuId = stuId;
    }

    public Long getStuId() 
    {
        return stuId;
    }

    public String getStuNumber() {
        return stuNumber;
    }

    public void setStuNumber(String stuNumber) {
        this.stuNumber = stuNumber;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuClass() {
        return stuClass;
    }

    public void setStuClass(String stuClass) {
        this.stuClass = stuClass;
    }

    public String getStuSpeciality() {
        return stuSpeciality;
    }

    public void setStuSpeciality(String stuSpeciality) {
        this.stuSpeciality = stuSpeciality;
    }

    public Long getNowUserId() {
        return nowUserId;
    }

    public void setNowUserId(Long nowUserId) {
        this.nowUserId = nowUserId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cerId", getCerId())
            .append("cerName", getCerName())
            .append("cerInstitution", getCerInstitution())
            .append("cerGettime", getCerGettime())
            .append("cerInstructor", getCerInstructor())
            .append("remark", getRemark())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("stuId", getStuId())
            .append("userId", getUserId())
            .toString();
    }
}
